package com.tsd.job.service;

import com.tsd.core.vo.PageBean;
import com.tsd.job.entity.SysTaskJobExecLog;
import com.tsd.job.entity.SysTaskJobExecLogExt;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 描述：SysTaskJobExecLog服务实现层接口
 *
 * @author huawei
 * @date 2022/02/24 21:01:20
 */
public interface SysTaskJobExecLogService {

    /**
     * 描述：根据id获取SysTaskJobExecLog
     *
     * @param id
     */
    SysTaskJobExecLog getSysTaskJobExecLogById(Long id) throws Exception;

    /**
     * 描述：根据sid获取SysTaskJobExecLog
     *
     * @param sid
     */
    SysTaskJobExecLogExt queryBySid(String sid) throws Exception;

    /**
     * 描述：根据sid列表删除SysTaskJobExecLog
     *
     * @param list
     */
    void deleteSysTaskJobExecLogs(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新SysTaskJobExecLog
     *
     * @param record
     * @param opUser
     */
    void saveSysTaskJobExecLog(SysTaskJobExecLog record, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询SysTaskJobExecLog
     *
     * @param params
     * @param page
     */
    List<SysTaskJobExecLogExt> findSysTaskJobExecLogs(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询SysTaskJobExecLog
     *
     * @param params
     */
    List<SysTaskJobExecLogExt> findSysTaskJobExecLogs(Map<String, Object> params) throws Exception;
}